package com.zhudi.develop_demo_as.ui.fragment.order;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.zhudi.develop_demo_as.BaseFragment;
import com.zhudi.develop_demo_as.R;

public class BookTypeFragment extends BaseFragment {
    protected static final String TYPE = "project_search_";
    private String key;

    public static BookTypeFragment newInstance(String searchKey) {
        BookTypeFragment fragment = new BookTypeFragment();
        Bundle args = new Bundle();
        args.putString(TYPE, searchKey);
        fragment.setArguments(args);
        return fragment;
    }
    @Override
    protected int getLayoutView() {
        return R.layout.fragment_book_type;
    }


    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        if (getArguments() != null) {
            key = getArguments().getString(TYPE);
        }
        initView(view);
    }

    private void initView(View view) {
        ((TextView) view.findViewById(R.id.tv)).setText("第几个----" + key);
    }
}
